/* 
 *  javascribd - Java client library for the Scribd API. 
 *  Copyright (C) 2009 by Marcel Eyke, http://code.google.com/p/javascribd/ 
 *  Use is subject to license terms of LGPL. See license.txt. 
 */
package com.google.code.javascribd.user;

import com.google.code.javascribd.connection.AbstractScribdMethod;
import com.google.code.javascribd.connection.annotation.GETParameter;
import com.google.code.javascribd.connection.annotation.Method;
import com.google.code.javascribd.type.ApiKey;

/**
 * This class is the POJO of the user.login Scribd request.
 *  
 * @see <a
 *      href="http://www.scribd.com/developers/api?method_name=user.login">user.login
 *      specification on Scribd.com</a>
 * 
 * @author Marcel Eyke
 */
@Method(name = "user.login")
public final class Login extends AbstractScribdMethod<LoginResponse> {

	@GETParameter(name = "username")
	private String username;

	@GETParameter(name = "password")
	private String password;

	@GETParameter(name = "api_key")
	private ApiKey apiKey;

	public Login(ApiKey apiKey, String username, String password) {
		super();
		this.username = username;
		this.password = password;
		this.apiKey = apiKey;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public ApiKey getApiKey() {
		return apiKey;
	}

}
